package com.itheima.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.commo.PageResult;
import com.itheima.commo.R;
import com.itheima.entity.Orders;

import javax.servlet.http.HttpSession;

/**
 * 订单业务层接口类
 */
public interface OrderService {


    /**
     * 下单
     * @param orders
     * @param session
     */
    void add(Orders orders, HttpSession session);



    /**
     * 订单明细
     */
    PageResult<Orders> findPage(Long page, Long pageSize);



    /**
     * 派送订单
     */
    void update(Orders orders);


    /**
     * 手机端查看历史订单
     */
    R<Page> userPage(Integer page, Integer pageSize);



}
